package com.study.d7_otherstream;

import java.io.FileInputStream;
import java.io.ObjectInputStream;

public class ObjectDemo2 {
    public static void main(String[] args) {
        try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream("day10/src/obj.txt"));
        ) {
            Object o = ois.readObject();
            System.out.println(o);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
